
static inline void MC_GETTORQUELIMIT_init__(MC_GETTORQUELIMIT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->TORQUELIMITPOS, 0, retain)
    __INIT_VAR(data__->TORQUELIMITNEG, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_GETTORQUELIMIT_body__(MC_GETTORQUELIMIT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    plc_rte->mc->__mcl_cmd_MC_GetTorqueLimit(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_GETTORQUELIMIT_body__()





static inline void MC_SETTORQUELIMIT_init__(MC_SETTORQUELIMIT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->TORQUELIMITPOS, 0, retain)
    __INIT_VAR(data__->TORQUELIMITNEG, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_SETTORQUELIMIT_body__(MC_SETTORQUELIMIT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_SetTorqueLimit(MC_SETTORQUELIMIT *);
    plc_rte->mc->__mcl_cmd_MC_SetTorqueLimit(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_SETTORQUELIMIT_body__()





static inline void MC_POWER_init__(MC_POWER *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ENABLEPOSITIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ENABLENEGATIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->STATUS, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
}

// Code part
static inline void MC_POWER_body__(MC_POWER *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    __IL_DEFVAR_T __IL_DEFVAR;
    __IL_DEFVAR_T __IL_DEFVAR_BACK;
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_Power(MC_POWER *);
    plc_rte->mc->__mcl_cmd_MC_Power(data__);

#undef GetFbVar
#undef SetFbVar


    goto __end;

    __end:
    return;
} // MC_POWER_body__()





static inline void MC_HOME_init__(MC_HOME *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->POSITION, 0, retain)
    __INIT_VAR(data__->HOMINGMODE, MC_HOMING_PROCEDURES__MCHOMEDIRECT, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_HOME_body__(MC_HOME *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_Home(MC_HOME *);
    plc_rte->mc->__mcl_cmd_MC_Home(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_HOME_body__()





static inline void MC_STOP_init__(MC_STOP *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_STOP_body__(MC_STOP *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_Stop(MC_STOP *);
    plc_rte->mc->__mcl_cmd_MC_Stop(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_STOP_body__()





static inline void MC_HALT_init__(MC_HALT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_HALT_body__(MC_HALT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_Halt(MC_HALT *);
    plc_rte->mc->__mcl_cmd_MC_Halt(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_HALT_body__()





static inline void MC_MOVEABSOLUTE_init__(MC_MOVEABSOLUTE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->POSITION, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->DIRECTION, MC_DIRECTION__MCABSOLUTEPOSITION, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_MOVEABSOLUTE_body__(MC_MOVEABSOLUTE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_MoveAbsolute(MC_MOVEABSOLUTE *);
    plc_rte->mc->__mcl_cmd_MC_MoveAbsolute(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_MOVEABSOLUTE_body__()





static inline void MC_MOVERELATIVE_init__(MC_MOVERELATIVE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DISTANCE, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_MOVERELATIVE_body__(MC_MOVERELATIVE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_MoveRelative(MC_MOVERELATIVE *);
    plc_rte->mc->__mcl_cmd_MC_MoveRelative(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_MOVERELATIVE_body__()





static inline void MC_MOVEADDITIVE_init__(MC_MOVEADDITIVE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DISTANCE, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_MOVEADDITIVE_body__(MC_MOVEADDITIVE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_MoveAdditive(MC_MOVEADDITIVE *);
    plc_rte->mc->__mcl_cmd_MC_MoveAdditive(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_MOVEADDITIVE_body__()





static inline void MC_MOVESUPERIMPOSED_init__(MC_MOVESUPERIMPOSED *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DISTANCE, 0, retain)
    __INIT_VAR(data__->VELOCITYDIFF, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->COVEREDDISTANCE, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_MOVESUPERIMPOSED_body__(MC_MOVESUPERIMPOSED *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_MoveSuperimposed(MC_MOVESUPERIMPOSED *);
    plc_rte->mc->__mcl_cmd_MC_MoveSuperimposed(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_MOVESUPERIMPOSED_body__()





static inline void MC_HALTSUPERIMPOSED_init__(MC_HALTSUPERIMPOSED *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_HALTSUPERIMPOSED_body__(MC_HALTSUPERIMPOSED *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_HaltSuperimposed(MC_HALTSUPERIMPOSED *);
    plc_rte->mc->__mcl_cmd_MC_HaltSuperimposed(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_HALTSUPERIMPOSED_body__()





static inline void MC_MOVEVELOCITY_init__(MC_MOVEVELOCITY *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->DIRECTION, MC_DIRECTION__MCABSOLUTEPOSITION, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->INVELOCITY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INVELOCITY0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_MOVEVELOCITY_body__(MC_MOVEVELOCITY *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    plc_rte->mc->__mcl_cmd_MC_MoveVelocity(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, INVELOCITY0, , __GET_VAR(data__->INVELOCITY,));

    goto __end;

    __end:
    return;
} // MC_MOVEVELOCITY_body__()





static inline void MC_MOVECONTINUOUSABSOLUTE_init__(MC_MOVECONTINUOUSABSOLUTE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->POSITION, 0, retain)
    __INIT_VAR(data__->ENDVELOCITY, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->DIRECTION, MC_DIRECTION__MCABSOLUTEPOSITION, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->INENDVELOCITY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INENDVELOCITY0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_MOVECONTINUOUSABSOLUTE_body__(MC_MOVECONTINUOUSABSOLUTE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_MoveContinuousAbsolute(MC_MOVECONTINUOUSABSOLUTE *);
    plc_rte->mc->__mcl_cmd_MC_MoveContinuousAbsolute(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, INENDVELOCITY0, , __GET_VAR(data__->INENDVELOCITY,));

    goto __end;

    __end:
    return;
} // MC_MOVECONTINUOUSABSOLUTE_body__()





static inline void MC_MOVECONTINUOUSRELATIVE_init__(MC_MOVECONTINUOUSRELATIVE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DISTANCE, 0, retain)
    __INIT_VAR(data__->ENDVELOCITY, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->INENDVELOCITY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INENDVELOCITY0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_MOVECONTINUOUSRELATIVE_body__(MC_MOVECONTINUOUSRELATIVE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_MoveContinuousRelative(MC_MOVECONTINUOUSRELATIVE *);
    plc_rte->mc->__mcl_cmd_MC_MoveContinuousRelative(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, INENDVELOCITY0, , __GET_VAR(data__->INENDVELOCITY,));

    goto __end;

    __end:
    return;
} // MC_MOVECONTINUOUSRELATIVE_body__()





static inline void MC_TORQUECONTROL_init__(MC_TORQUECONTROL *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->TORQUE, 0, retain)
    __INIT_VAR(data__->TORQUERAMP, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->DIRECTION, MC_DIRECTION__MCABSOLUTEPOSITION, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->INTORQUE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INTORQUE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_TORQUECONTROL_body__(MC_TORQUECONTROL *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_TorqueControl(MC_TORQUECONTROL *);
    plc_rte->mc->__mcl_cmd_MC_TorqueControl(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, INTORQUE0, , __GET_VAR(data__->INTORQUE,));

    goto __end;

    __end:
    return;
} // MC_TORQUECONTROL_body__()





static inline void MC_POSITIONPROFILE_init__(MC_POSITIONPROFILE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->TIMEPOSITION, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->TIMESCALE, 1.0, retain)
    __INIT_VAR(data__->POSITIONSCALE, 1.0, retain)
    __INIT_VAR(data__->OFFSET, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_POSITIONPROFILE_body__(MC_POSITIONPROFILE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_PositionProfile(MC_POSITIONPROFILE *);
    plc_rte->mc->__mcl_cmd_MC_PositionProfile(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_POSITIONPROFILE_body__()





static inline void MC_VELOCITYPROFILE_init__(MC_VELOCITYPROFILE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->TIMEVELOCITY, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->TIMESCALE, 1.0, retain)
    __INIT_VAR(data__->VELOCITYSCALE, 1.0, retain)
    __INIT_VAR(data__->OFFSET, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->PROFILECOMPLETED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->PROFILECOMPLETED0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_VELOCITYPROFILE_body__(MC_VELOCITYPROFILE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_VelocityProfile(MC_VELOCITYPROFILE *);
    plc_rte->mc->__mcl_cmd_MC_VelocityProfile(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, PROFILECOMPLETED0, , __GET_VAR(data__->PROFILECOMPLETED,));

    goto __end;

    __end:
    return;
} // MC_VELOCITYPROFILE_body__()





static inline void MC_ACCELERATIONPROFILE_init__(MC_ACCELERATIONPROFILE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->TIMEACCELERATION, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->TIMESCALE, 1.0, retain)
    __INIT_VAR(data__->ACCELERATIONSCALE, 1.0, retain)
    __INIT_VAR(data__->OFFSET, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->PROFILECOMPLETED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->PROFILECOMPLETED0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_ACCELERATIONPROFILE_body__(MC_ACCELERATIONPROFILE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_AccelerationProfile(MC_ACCELERATIONPROFILE *);
    plc_rte->mc->__mcl_cmd_MC_AccelerationProfile(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, PROFILECOMPLETED0, , __GET_VAR(data__->PROFILECOMPLETED,));

    goto __end;

    __end:
    return;
} // MC_ACCELERATIONPROFILE_body__()





static inline void MC_SETPOSITION_init__(MC_SETPOSITION *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->POSITION, 0, retain)
    __INIT_VAR(data__->RELATIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->EXECUTIONMODE, MC_EXECUTION_MODE__MCIMMEDIATELY, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_SETPOSITION_body__(MC_SETPOSITION *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_SetPosition(MC_SETPOSITION *);
    plc_rte->mc->__mcl_cmd_MC_SetPosition(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_SETPOSITION_body__()





static inline void MC_SETOVERRIDE_init__(MC_SETOVERRIDE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VELFACTOR, 1.0, retain)
    __INIT_VAR(data__->ACCFACTOR, 1.0, retain)
    __INIT_VAR(data__->JERKFACTOR, 1.0, retain)
    __INIT_VAR(data__->ENABLED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_SETOVERRIDE_body__(MC_SETOVERRIDE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_SetOverride(MC_SETOVERRIDE *);
    plc_rte->mc->__mcl_cmd_MC_SetOverride(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_SETOVERRIDE_body__()





static inline void MC_READPARAMETER_init__(MC_READPARAMETER *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->PARAMETERNUMBER, 0, retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->VALUE, 0, retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READPARAMETER_body__(MC_READPARAMETER *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadParameter(MC_READPARAMETER *);
    plc_rte->mc->__mcl_cmd_MC_ReadParameter(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READPARAMETER_body__()





static inline void MC_READBOOLPARAMETER_init__(MC_READBOOLPARAMETER *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->PARAMETERNUMBER, 0, retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->VALUE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READBOOLPARAMETER_body__(MC_READBOOLPARAMETER *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadBoolParameter(MC_READBOOLPARAMETER *);
    plc_rte->mc->__mcl_cmd_MC_ReadBoolParameter(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READBOOLPARAMETER_body__()





static inline void MC_WRITEPARAMETER_init__(MC_WRITEPARAMETER *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->PARAMETERNUMBER, 0, retain)
    __INIT_VAR(data__->VALUE, 0, retain)
    __INIT_VAR(data__->EXECUTIONMODE, MC_EXECUTION_MODE__MCIMMEDIATELY, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_WRITEPARAMETER_body__(MC_WRITEPARAMETER *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_WriteParameter(MC_WRITEPARAMETER *);
    plc_rte->mc->__mcl_cmd_MC_WriteParameter(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_WRITEPARAMETER_body__()





static inline void MC_WRITEBOOLPARAMETER_init__(MC_WRITEBOOLPARAMETER *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->PARAMETERNUMBER, 0, retain)
    __INIT_VAR(data__->VALUE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->EXECUTIONMODE, MC_EXECUTION_MODE__MCIMMEDIATELY, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_WRITEBOOLPARAMETER_body__(MC_WRITEBOOLPARAMETER *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_WriteBoolParameter(MC_WRITEBOOLPARAMETER *);
    plc_rte->mc->__mcl_cmd_MC_WriteBoolParameter(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_WRITEBOOLPARAMETER_body__()





static inline void MC_READDIGITALINPUT_init__(MC_READDIGITALINPUT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->INPUT, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INPUTNUMBER, 0, retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->VALUE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READDIGITALINPUT_body__(MC_READDIGITALINPUT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadDigitalInput(MC_READDIGITALINPUT *);
    plc_rte->mc->__mcl_cmd_MC_ReadDigitalInput(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READDIGITALINPUT_body__()





static inline void MC_READDIGITALOUTPUT_init__(MC_READDIGITALOUTPUT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->OUTPUT, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->OUTPUTNUMBER, 0, retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->VALUE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READDIGITALOUTPUT_body__(MC_READDIGITALOUTPUT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadDigitalOutput(MC_READDIGITALOUTPUT *);
    plc_rte->mc->__mcl_cmd_MC_ReadDigitalOutput(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READDIGITALOUTPUT_body__()





static inline void MC_WRITEDIGITALOUTPUT_init__(MC_WRITEDIGITALOUTPUT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->OUTPUT, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->OUTPUTNUMBER, 0, retain)
    __INIT_VAR(data__->VALUE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->EXECUTIONMODE, MC_EXECUTION_MODE__MCIMMEDIATELY, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_WRITEDIGITALOUTPUT_body__(MC_WRITEDIGITALOUTPUT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_WriteDigitalOutput(MC_WRITEDIGITALOUTPUT *);
    plc_rte->mc->__mcl_cmd_MC_WriteDigitalOutput(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_WRITEDIGITALOUTPUT_body__()





static inline void MC_READACTUALPOSITION_init__(MC_READACTUALPOSITION *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->POSITION, 0, retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READACTUALPOSITION_body__(MC_READACTUALPOSITION *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadActualPosition(MC_READACTUALPOSITION *);
    plc_rte->mc->__mcl_cmd_MC_ReadActualPosition(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READACTUALPOSITION_body__()





static inline void MC_READACTUALVELOCITY_init__(MC_READACTUALVELOCITY *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READACTUALVELOCITY_body__(MC_READACTUALVELOCITY *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadActualVelocity(MC_READACTUALVELOCITY *);
    plc_rte->mc->__mcl_cmd_MC_ReadActualVelocity(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READACTUALVELOCITY_body__()





static inline void MC_READACTUALTORQUE_init__(MC_READACTUALTORQUE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->TORQUE, 0, retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READACTUALTORQUE_body__(MC_READACTUALTORQUE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadActualTorque(MC_READACTUALTORQUE *);
    plc_rte->mc->__mcl_cmd_MC_ReadActualTorque(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READACTUALTORQUE_body__()





static inline void MC_READSTATUS_init__(MC_READSTATUS *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->ERRORSTOP, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DISABLED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->STOPPING, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->HOMING, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->STANDSTILL, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DISCRETEMOTION, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSMOTION, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->SYNCHRONIZEDMOTION, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READSTATUS_body__(MC_READSTATUS *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadStatus(MC_READSTATUS *);
    plc_rte->mc->__mcl_cmd_MC_ReadStatus(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READSTATUS_body__()





static inline void MC_READMOTIONSTATE_init__(MC_READMOTIONSTATE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->SOURCE, MC_SOURCE__MCACTUALVALUE, retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->CONSTANTVELOCITY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACCELERATING, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DECELERATING, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DIRECTIONPOSITIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DIRECTIONNEGATIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READMOTIONSTATE_body__(MC_READMOTIONSTATE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadMotionState(MC_READMOTIONSTATE *);
    plc_rte->mc->__mcl_cmd_MC_ReadMotionState(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READMOTIONSTATE_body__()





static inline void MC_READAXISINFO_init__(MC_READAXISINFO *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->HOMEABSSWITCH, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->LIMITSWITCHPOS, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->LIMITSWITCHNEG, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->SIMULATION, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMUNICATIONREADY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->READYFORPOWERON, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->POWERON, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ISHOMED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->AXISWARNING, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READAXISINFO_body__(MC_READAXISINFO *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadAxisInfo(MC_READAXISINFO *);
    plc_rte->mc->__mcl_cmd_MC_ReadAxisInfo(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READAXISINFO_body__()





static inline void MC_READAXISERROR_init__(MC_READAXISERROR *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->AXISERRORID, 0, retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_READAXISERROR_body__(MC_READAXISERROR *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_ReadAxisError(MC_READAXISERROR *);
    plc_rte->mc->__mcl_cmd_MC_ReadAxisError(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));

    goto __end;

    __end:
    return;
} // MC_READAXISERROR_body__()





static inline void MC_RESET_init__(MC_RESET *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_RESET_body__(MC_RESET *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_Reset(MC_RESET *);
    plc_rte->mc->__mcl_cmd_MC_Reset(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_RESET_body__()





static inline void MC_DIGITALCAMSWITCH_init__(MC_DIGITALCAMSWITCH *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->SWITCHES, -1, retain)
    __INIT_VAR(data__->OUTPUTS, -1, retain)
    __INIT_VAR(data__->TRACKOPTIONS, -1, retain)
    __INIT_VAR(data__->ENABLE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ENABLEMASK, 0, retain)
    __INIT_VAR(data__->VALUESOURCE, MC_SOURCE__MCACTUALVALUE, retain)
    __INIT_VAR(data__->INOPERATION, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->ENABLE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INOPERATION0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_DIGITALCAMSWITCH_body__(MC_DIGITALCAMSWITCH *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_DigitalCamSwitch(MC_DIGITALCAMSWITCH *);
    plc_rte->mc->__mcl_cmd_MC_DigitalCamSwitch(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, ENABLE0, , __GET_VAR(data__->ENABLE,));
    __SET_VAR(data__->, INOPERATION0, , __GET_VAR(data__->INOPERATION,));

    goto __end;

    __end:
    return;
} // MC_DIGITALCAMSWITCH_body__()





static inline void MC_TOUCHPROBE_init__(MC_TOUCHPROBE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->TRIGGERINPUT, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->WINDOWONLY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->FIRSTPOSITION, 0, retain)
    __INIT_VAR(data__->LASTPOSITION, 0, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->RECORDEDPOSITION, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_TOUCHPROBE_body__(MC_TOUCHPROBE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_TouchProbe(MC_TOUCHPROBE *);
    plc_rte->mc->__mcl_cmd_MC_TouchProbe(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_TOUCHPROBE_body__()





static inline void MC_ABORTTRIGGER_init__(MC_ABORTTRIGGER *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    __INIT_VAR(data__->TRIGGERINPUT, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_ABORTTRIGGER_body__(MC_ABORTTRIGGER *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_AbortTrigger(MC_ABORTTRIGGER *);
    plc_rte->mc->__mcl_cmd_MC_AbortTrigger(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_ABORTTRIGGER_body__()





static inline void MC_CAMTABLESELECT_init__(MC_CAMTABLESELECT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->MASTER, -1, retain)
    __INIT_VAR(data__->SLAVE, -1, retain)
    __INIT_VAR(data__->CAMTABLE, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->PERIODIC, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->MASTERABSOLUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->SLAVEABSOLUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->EXECUTIONMODE, MC_EXECUTION_MODE__MCIMMEDIATELY, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->CAMTABLEID, -1, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->REFINIT, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CAMTABLEIDREF, -1, retain)
}

// Code part
static inline void MC_CAMTABLESELECT_body__(MC_CAMTABLESELECT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    if (!(__GET_VAR(data__->REFINIT,))) {
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

        extern int __MK_Alloc_MC_CAM_ID();
        int res = plc_rte->mc->__MK_Alloc_MC_CAM_ID();
        SetFbVar(CAMTABLEID, res);
        SetFbVar(CAMTABLEIDREF, res);

#undef GetFbVar
#undef SetFbVar

        __SET_VAR(data__->, REFINIT, , __BOOL_LITERAL(TRUE));
    }
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_CamTableSelect(MC_CAMTABLESELECT *);
    plc_rte->mc->__mcl_cmd_MC_CamTableSelect(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_CAMTABLESELECT_body__()





static inline void MC_CAMIN_init__(MC_CAMIN *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->MASTER, -1, retain)
    __INIT_VAR(data__->SLAVE, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->MASTEROFFSET, 0, retain)
    __INIT_VAR(data__->SLAVEOFFSET, 0, retain)
    __INIT_VAR(data__->MASTERSCALING, 1.0, retain)
    __INIT_VAR(data__->SLAVESCALING, 1.0, retain)
    __INIT_VAR(data__->MASTERSTARTDISTANCE, 0, retain)
    __INIT_VAR(data__->MASTERSYNCPOSITION, 0, retain)
    __INIT_VAR(data__->STARTMODE, -1, retain)
    __INIT_VAR(data__->MASTERVALUESOURCE, MC_SOURCE__MCACTUALVALUE, retain)
    __INIT_VAR(data__->CAMTABLEID, -1, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->INSYNC, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->ENDOFPROFILE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INSYNC0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_CAMIN_body__(MC_CAMIN *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_CamIn(MC_CAMIN *);
    plc_rte->mc->__mcl_cmd_MC_CamIn(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, INSYNC0, , __GET_VAR(data__->INSYNC,));

    goto __end;

    __end:
    return;
} // MC_CAMIN_body__()





static inline void MC_CAMOUT_init__(MC_CAMOUT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->SLAVE, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_CAMOUT_body__(MC_CAMOUT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_CamOut(MC_CAMOUT *);
    plc_rte->mc->__mcl_cmd_MC_CamOut(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_CAMOUT_body__()





static inline void MC_GEARIN_init__(MC_GEARIN *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->MASTER, -1, retain)
    __INIT_VAR(data__->SLAVE, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->RATIONUMERATOR, 1, retain)
    __INIT_VAR(data__->RATIODENOMINATOR, 1, retain)
    __INIT_VAR(data__->MASTERVALUESOURCE, MC_SOURCE__MCACTUALVALUE, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->INGEAR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INGEAR0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_GEARIN_body__(MC_GEARIN *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_GearIn(MC_GEARIN *);
    plc_rte->mc->__mcl_cmd_MC_GearIn(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, INGEAR0, , __GET_VAR(data__->INGEAR,));

    goto __end;

    __end:
    return;
} // MC_GEARIN_body__()





static inline void MC_GEAROUT_init__(MC_GEAROUT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->SLAVE, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_GEAROUT_body__(MC_GEAROUT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_GearOut(MC_GEAROUT *);
    plc_rte->mc->__mcl_cmd_MC_GearOut(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_GEAROUT_body__()





static inline void MC_GEARINPOS_init__(MC_GEARINPOS *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->MASTER, -1, retain)
    __INIT_VAR(data__->SLAVE, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->RATIONUMERATOR, 1, retain)
    __INIT_VAR(data__->RATIODENOMINATOR, 1, retain)
    __INIT_VAR(data__->MASTERVALUESOURCE, MC_SOURCE__MCACTUALVALUE, retain)
    __INIT_VAR(data__->MASTERSYNCPOSITION, 0, retain)
    __INIT_VAR(data__->SLAVESYNCPOSITION, 0, retain)
    __INIT_VAR(data__->SYNCMODE, -1, retain)
    __INIT_VAR(data__->MASTERSTARTDISTANCE, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->STARTSYNC, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INSYNC, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INSYNC0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_GEARINPOS_body__(MC_GEARINPOS *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_GearInPos(MC_GEARINPOS *);
    plc_rte->mc->__mcl_cmd_MC_GearInPos(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, INSYNC0, , __GET_VAR(data__->INSYNC,));

    goto __end;

    __end:
    return;
} // MC_GEARINPOS_body__()





static inline void MC_PHASINGABSOLUTE_init__(MC_PHASINGABSOLUTE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->MASTER, -1, retain)
    __INIT_VAR(data__->SLAVE, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->PHASESHIFT, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->ABSOLUTEPHASESHIFT, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_PHASINGABSOLUTE_body__(MC_PHASINGABSOLUTE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_PhasingAbsolute(MC_PHASINGABSOLUTE *);
    plc_rte->mc->__mcl_cmd_MC_PhasingAbsolute(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_PHASINGABSOLUTE_body__()





static inline void MC_PHASINGRELATIVE_init__(MC_PHASINGRELATIVE *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->MASTER, -1, retain)
    __INIT_VAR(data__->SLAVE, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->PHASESHIFT, 0, retain)
    __INIT_VAR(data__->VELOCITY, 0, retain)
    __INIT_VAR(data__->ACCELERATION, 0, retain)
    __INIT_VAR(data__->DECELERATION, 0, retain)
    __INIT_VAR(data__->JERK, 0, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->COVEREDPHASESHIFT, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->DONE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_PHASINGRELATIVE_body__(MC_PHASINGRELATIVE *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_PhasingRelative(MC_PHASINGRELATIVE *);
    plc_rte->mc->__mcl_cmd_MC_PhasingRelative(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, DONE0, , __GET_VAR(data__->DONE,));

    goto __end;

    __end:
    return;
} // MC_PHASINGRELATIVE_body__()





static inline void MC_COMBINEAXES_init__(MC_COMBINEAXES *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->MASTER1, -1, retain)
    __INIT_VAR(data__->MASTER2, -1, retain)
    __INIT_VAR(data__->SLAVE, -1, retain)
    __INIT_VAR(data__->EXECUTE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CONTINUOUSUPDATE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMBINEMODE, MC_COMBINE_MODE__MCADDAXES, retain)
    __INIT_VAR(data__->GEARRATIONUMERATORM1, 1, retain)
    __INIT_VAR(data__->GEARRATIODENOMINATORM1, 1, retain)
    __INIT_VAR(data__->GEARRATIONUMERATORM2, 1, retain)
    __INIT_VAR(data__->GEARRATIODENOMINATORM2, 1, retain)
    __INIT_VAR(data__->MASTERVALUESOURCEM1, MC_SOURCE__MCACTUALVALUE, retain)
    __INIT_VAR(data__->MASTERVALUESOURCEM2, MC_SOURCE__MCACTUALVALUE, retain)
    __INIT_VAR(data__->BUFFERMODE, MC_BUFFER_MODE__MCABORTING, retain)
    __INIT_VAR(data__->INSYNC, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->BUSY, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->COMMANDABORTED, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERROR, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ERRORID, 0, retain)
    __INIT_VAR(data__->EXECUTE0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->INSYNC0, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->ACTIVE0, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_COMBINEAXES_body__(MC_COMBINEAXES *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    //extern void __mcl_cmd_MC_CombineAxes(MC_COMBINEAXES *);
    plc_rte->mc->__mcl_cmd_MC_CombineAxes(data__);

#undef GetFbVar
#undef SetFbVar

    __SET_VAR(data__->, EXECUTE0, , __GET_VAR(data__->EXECUTE,));
    __SET_VAR(data__->, INSYNC0, , __GET_VAR(data__->INSYNC,));

    goto __end;

    __end:
    return;
} // MC_COMBINEAXES_body__()





static inline void MC_SIM_init__(MC_SIM *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->MAXVEL, 1.0, retain)
    __INIT_VAR(data__->MAXACC, 1.0, retain)
    __INIT_VAR(data__->MAXDEC, 1.0, retain)
    __INIT_VAR(data__->AXIS, -1, retain)
    MC_WRITEBOOLPARAMETER_init__(&data__->SIMPARAM, retain);
    MC_WRITEPARAMETER_init__(&data__->VELPARAM, retain);
    MC_WRITEPARAMETER_init__(&data__->ACCPARAM, retain);
    MC_WRITEPARAMETER_init__(&data__->DECPARAM, retain);
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_SIM_body__(MC_SIM *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    if (!(__GET_VAR(data__->DONE,))) {
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

        extern int __MK_Alloc_AXIS_REF();
        int res = plc_rte->mc->__MK_Alloc_AXIS_REF();
        __SET_VAR(data__->, AXIS, , res);

#undef GetFbVar
#undef SetFbVar

        __SET_VAR(data__->SIMPARAM., AXIS, , __GET_VAR(data__->AXIS,));
        __SET_VAR(data__->SIMPARAM., EXECUTE, , __BOOL_LITERAL(TRUE));
        __SET_VAR(data__->SIMPARAM., PARAMETERNUMBER, , 1000);
        __SET_VAR(data__->SIMPARAM., VALUE, , __BOOL_LITERAL(TRUE));
        MC_WRITEBOOLPARAMETER_body__(&data__->SIMPARAM);
        __SET_VAR(data__->, AXIS, , __GET_VAR(data__->SIMPARAM.AXIS));
        __SET_VAR(data__->VELPARAM., AXIS, , __GET_VAR(data__->AXIS,));
        __SET_VAR(data__->VELPARAM., EXECUTE, , __BOOL_LITERAL(TRUE));
        __SET_VAR(data__->VELPARAM., PARAMETERNUMBER, , 9);
        __SET_VAR(data__->VELPARAM., VALUE, , __GET_VAR(data__->MAXVEL,));
        MC_WRITEPARAMETER_body__(&data__->VELPARAM);
        __SET_VAR(data__->, AXIS, , __GET_VAR(data__->VELPARAM.AXIS));
        __SET_VAR(data__->ACCPARAM., AXIS, , __GET_VAR(data__->AXIS,));
        __SET_VAR(data__->ACCPARAM., EXECUTE, , __BOOL_LITERAL(TRUE));
        __SET_VAR(data__->ACCPARAM., PARAMETERNUMBER, , 13);
        __SET_VAR(data__->ACCPARAM., VALUE, , __GET_VAR(data__->MAXACC,));
        MC_WRITEPARAMETER_body__(&data__->ACCPARAM);
        __SET_VAR(data__->, AXIS, , __GET_VAR(data__->ACCPARAM.AXIS));
        __SET_VAR(data__->DECPARAM., AXIS, , __GET_VAR(data__->AXIS,));
        __SET_VAR(data__->DECPARAM., EXECUTE, , __BOOL_LITERAL(TRUE));
        __SET_VAR(data__->DECPARAM., PARAMETERNUMBER, , 15);
        __SET_VAR(data__->DECPARAM., VALUE, , __GET_VAR(data__->MAXDEC,));
        MC_WRITEPARAMETER_body__(&data__->DECPARAM);
        __SET_VAR(data__->, AXIS, , __GET_VAR(data__->DECPARAM.AXIS));
        __SET_VAR(data__->, DONE, , __BOOL_LITERAL(TRUE));
    }

    goto __end;

    __end:
    return;
} // MC_SIM_body__()





static inline void MC_CREATETRIGGER_init__(MC_CREATETRIGGER *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->POSITIVEEDGE, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->NEGATIVEEDGE, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->TRIGGERINPUT, -1, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_CREATETRIGGER_body__(MC_CREATETRIGGER *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    if (!(__GET_VAR(data__->DONE,))) {
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

        int res = plc_rte->mc->__MK_Alloc_MC_TRIGGER_REF();
        if (res >= 0)
            *plc_rte->mc->__MK_GetPublic_MC_TRIGGER_REF(res) =
                    (GetFbVar(POSITIVEEDGE) ? 0x01 : 0)
                    | (GetFbVar(NEGATIVEEDGE) ? 0x02 : 0);
        SetFbVar(TRIGGERINPUT, res);

#undef GetFbVar
#undef SetFbVar

        __SET_VAR(data__->, DONE, , __BOOL_LITERAL(TRUE));
    }

    goto __end;

    __end:
    return;
} // MC_CREATETRIGGER_body__()





static inline void MC_CREATEOUTPUT_init__(MC_CREATEOUTPUT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->OUTPUT, -1, retain)
    __INIT_VAR(data__->DONE, __BOOL_LITERAL(FALSE), retain)
}

// Code part
static inline void MC_CREATEOUTPUT_body__(MC_CREATEOUTPUT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    if (!(__GET_VAR(data__->DONE,))) {
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

        extern int __MK_Alloc_MC_OUTPUT_REF();
        int res = plc_rte->mc->__MK_Alloc_MC_OUTPUT_REF();
        SetFbVar(OUTPUT, res);

#undef GetFbVar
#undef SetFbVar

        __SET_VAR(data__->, DONE, , __BOOL_LITERAL(TRUE));
    }

    goto __end;

    __end:
    return;
} // MC_CREATEOUTPUT_body__()





static inline void MC_TOINTARRAY_init__(MC_TOINTARRAY *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    {
        static const MC_INT_ARRAY temp = {{0, 0, 0, 0, 0, 0}};
        __SET_VAR(data__->, INTARRAY, , temp);
    }
    __INIT_VAR(data__->X, 0, retain)
    __INIT_VAR(data__->Y, 0, retain)
    __INIT_VAR(data__->Z, 0, retain)
    __INIT_VAR(data__->U, 0, retain)
    __INIT_VAR(data__->V, 0, retain)
    __INIT_VAR(data__->W, 0, retain)
}

// Code part
static inline void MC_TOINTARRAY_body__(MC_TOINTARRAY *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    __SET_VAR(data__->, INTARRAY, .table[(1) - (1)], __GET_VAR(data__->X,));
    __SET_VAR(data__->, INTARRAY, .table[(2) - (1)], __GET_VAR(data__->Y,));
    __SET_VAR(data__->, INTARRAY, .table[(3) - (1)], __GET_VAR(data__->Z,));
    __SET_VAR(data__->, INTARRAY, .table[(4) - (1)], __GET_VAR(data__->U,));
    __SET_VAR(data__->, INTARRAY, .table[(5) - (1)], __GET_VAR(data__->V,));
    __SET_VAR(data__->, INTARRAY, .table[(6) - (1)], __GET_VAR(data__->W,));

    goto __end;

    __end:
    return;
} // MC_TOINTARRAY_body__()





static inline void MC_READOUTPUTBITS_init__(MC_READOUTPUTBITS *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->BITS, 0, retain)
    __INIT_VAR(data__->OUTPUT, -1, retain)
}

// Code part
static inline void MC_READOUTPUTBITS_body__(MC_READOUTPUTBITS *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    __IL_DEFVAR_T __IL_DEFVAR;
    __IL_DEFVAR_T __IL_DEFVAR_BACK;
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    extern uint32_t *__MK_GetPublic_MC_OUTPUT_REF(int);
    SetFbVar(BITS, *plc_rte->mc->__MK_GetPublic_MC_OUTPUT_REF(GetFbVar(OUTPUT)));

#undef GetFbVar
#undef SetFbVar


    goto __end;

    __end:
    return;
} // MC_READOUTPUTBITS_body__()





static inline void MC_READOUTPUTBIT_init__(MC_READOUTPUTBIT *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->BIT, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->OUTPUT, -1, retain)
    __INIT_VAR(data__->OUTPUTNUMBER, 0, retain)
}

// Code part
static inline void MC_READOUTPUTBIT_body__(MC_READOUTPUTBIT *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    __IL_DEFVAR_T __IL_DEFVAR;
    __IL_DEFVAR_T __IL_DEFVAR_BACK;
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    extern uint32_t *__MK_GetPublic_MC_OUTPUT_REF(int);
    SetFbVar(BIT, (*plc_rte->mc->__MK_GetPublic_MC_OUTPUT_REF(GetFbVar(OUTPUT)) >> GetFbVar(OUTPUTNUMBER)) & 1);

#undef GetFbVar
#undef SetFbVar


    goto __end;

    __end:
    return;
} // MC_READOUTPUTBIT_body__()





static inline void MC_TP_REF_FROM_CSV_init__(MC_TP_REF_FROM_CSV *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->FILENAME, __STRING_LITERAL(0, ""), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->TIMEPROFILE, -1, retain)
}

// Code part
static inline void MC_TP_REF_FROM_CSV_body__(MC_TP_REF_FROM_CSV *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    if (!(__GET_VAR(data__->ACTIVE,))) {
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

        extern int __MK_Alloc_MC_TP_REF();
        int res = plc_rte->mc->__MK_Alloc_MC_TP_REF();
        SetFbVar(TIMEPROFILE, res);

#undef GetFbVar
#undef SetFbVar

        __SET_VAR(data__->, ACTIVE, , __BOOL_LITERAL(TRUE));
    }
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    if (plc_rte->mc->MK_Load_MC_TP_REF_CSV(GetFbVar(TIMEPROFILE))) {
        extern uint8_t __MK_CheckPublic_MC_TP_REF(int);
        if (plc_rte->mc->__MK_CheckPublic_MC_TP_REF(GetFbVar(TIMEPROFILE))) {
            SetFbVar(VALID, TRUE);
        }
    }

#undef GetFbVar
#undef SetFbVar


    goto __end;

    __end:
    return;
} // MC_TP_REF_FROM_CSV_body__()





static inline void MC_TV_REF_FROM_CSV_init__(MC_TV_REF_FROM_CSV *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->FILENAME, __STRING_LITERAL(0, ""), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->TIMEPROFILE, -1, retain)
}

// Code part
static inline void MC_TV_REF_FROM_CSV_body__(MC_TV_REF_FROM_CSV *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    if (!(__GET_VAR(data__->ACTIVE,))) {
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

        extern int __MK_Alloc_MC_TV_REF();
        int res = plc_rte->mc->__MK_Alloc_MC_TV_REF();
        SetFbVar(TIMEPROFILE, res);

#undef GetFbVar
#undef SetFbVar

        __SET_VAR(data__->, ACTIVE, , __BOOL_LITERAL(TRUE));
    }
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    if (plc_rte->mc->MK_Load_MC_TV_REF_CSV(GetFbVar(TIMEPROFILE))) {
        extern uint8_t __MK_CheckPublic_MC_TV_REF(int);
        if (plc_rte->mc->__MK_CheckPublic_MC_TV_REF(GetFbVar(TIMEPROFILE))) {
            SetFbVar(VALID, TRUE);
        }
    }

#undef GetFbVar
#undef SetFbVar


    goto __end;

    __end:
    return;
} // MC_TV_REF_FROM_CSV_body__()





static inline void MC_TA_REF_FROM_CSV_init__(MC_TA_REF_FROM_CSV *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->FILENAME, __STRING_LITERAL(0, ""), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->TIMEPROFILE, -1, retain)
}

// Code part
static inline void MC_TA_REF_FROM_CSV_body__(MC_TA_REF_FROM_CSV *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    if (!(__GET_VAR(data__->ACTIVE,))) {
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

        int res = plc_rte->mc->__MK_Alloc_MC_TA_REF();
        SetFbVar(TIMEPROFILE, res);

#undef GetFbVar
#undef SetFbVar

        __SET_VAR(data__->, ACTIVE, , __BOOL_LITERAL(TRUE));
    }
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    if (plc_rte->mc->MK_Load_MC_TA_REF_CSV(GetFbVar(TIMEPROFILE))) {
        if (plc_rte->mc->__MK_CheckPublic_MC_TA_REF(GetFbVar(TIMEPROFILE))) {
            SetFbVar(VALID, TRUE);
        }
    }

#undef GetFbVar
#undef SetFbVar


    goto __end;

    __end:
    return;
} // MC_TA_REF_FROM_CSV_body__()





static inline void MC_CAMSWITCH_REF_FROM_CSV_init__(MC_CAMSWITCH_REF_FROM_CSV *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->FILENAME, __STRING_LITERAL(0, ""), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CAMSWITCHLIST, -1, retain)
}

// Code part
static inline void MC_CAMSWITCH_REF_FROM_CSV_body__(MC_CAMSWITCH_REF_FROM_CSV *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    if (!(__GET_VAR(data__->ACTIVE,))) {
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

        int res = plc_rte->mc->__MK_Alloc_MC_CAMSWITCH_REF();
        SetFbVar(CAMSWITCHLIST, res);

#undef GetFbVar
#undef SetFbVar

        __SET_VAR(data__->, ACTIVE, , __BOOL_LITERAL(TRUE));
    }
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    if (plc_rte->mc->MK_Load_MC_CAMSWITCH_REF_CSV(GetFbVar(CAMSWITCHLIST))) {
        if (plc_rte->mc->__MK_CheckPublic_MC_CAMSWITCH_REF(GetFbVar(CAMSWITCHLIST))) {
            SetFbVar(VALID, TRUE);
        }
    }

#undef GetFbVar
#undef SetFbVar


    goto __end;

    __end:
    return;
} // MC_CAMSWITCH_REF_FROM_CSV_body__()





static inline void MC_CAM_REF_FROM_CSV_init__(MC_CAM_REF_FROM_CSV *data__, BOOL retain) {
    __INIT_VAR(data__->EN, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->ENO, __BOOL_LITERAL(TRUE), retain)
    __INIT_VAR(data__->FILENAME, __STRING_LITERAL(0, ""), retain)
    __INIT_VAR(data__->ACTIVE, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->VALID, __BOOL_LITERAL(FALSE), retain)
    __INIT_VAR(data__->CAMTABLE, -1, retain)
}

// Code part
static inline void MC_CAM_REF_FROM_CSV_body__(MC_CAM_REF_FROM_CSV *data__) {
    // Control execution
    if (!__GET_VAR(data__->EN)) {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(FALSE));
        return;
    } else {
        __SET_VAR(data__->, ENO, , __BOOL_LITERAL(TRUE));
    }
    // Initialise TEMP variables @generate_c.cc L1201

    if (!(__GET_VAR(data__->ACTIVE,))) {
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)


        int res = plc_rte->mc->__MK_Alloc_MC_CAM_REF();
        SetFbVar(CAMTABLE, res);

#undef GetFbVar
#undef SetFbVar

        __SET_VAR(data__->, ACTIVE, , __BOOL_LITERAL(TRUE));
    }
#define GetFbVar(var, ...) __GET_VAR(data__->var,__VA_ARGS__)
#define SetFbVar(var, val, ...) __SET_VAR(data__->,var,__VA_ARGS__,val)

    if (plc_rte->mc->MK_Load_MC_CAM_REF_CSV(GetFbVar(CAMTABLE))) {
        extern uint8_t __MK_CheckPublic_MC_CAM_REF(int);
        if (plc_rte->mc->__MK_CheckPublic_MC_CAM_REF(GetFbVar(CAMTABLE))) {
            SetFbVar(VALID, TRUE);
        }
    }

#undef GetFbVar
#undef SetFbVar


    goto __end;

    __end:
    return;
} // MC_CAM_REF_FROM_CSV_body__()
